<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
    <%--全选、全不选--%>
    <%--分页--%>
    <%--根据下拉选项进行分页--%>
    <%--回显数据显示已经已经勾选的数据--%>

    <%--表单提交--%>
    <%--<script>
        function go() {
            var val = $("input[name='ids']:checked").val();
            $("input[name=shippingOrderId]").val(val);
            document.getElementById("editForm").submit();
        }

    </script>--%>
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            发票管理
            <small>修改发单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/home.do"><i class="fa fa-dashboard"></i> 首页</a></li>

            <li class="active">装箱单添加及列表</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">修改发票</div>
            <%--enctype="multipart/form-data"--%>
            <form id="editForm" action="/cargo/invoice/update.do" method="post">
                <input type="hidden" name="invoiceId" value="${invoice.invoiceId}">
                <%--<input type="hidden" name="shippingOrderId" value="${invoice.shippingOrderId}" id="shippingOrderId">--%>
                <div class="row data-type" style="margin: 0px">
                    <div class="col-md-2 title">报运合同</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="报运合同" name="scNo" value="${invoice.scNo}">
                    </div>

                    <div class="col-md-2 title">信用证</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="信用证" name="blNo" value="${invoice.blNo}">
                    </div>

                    <div class="col-md-2 title">货物总价</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="货物总价" name="exportProductPrice" value="${invoice.exportProductPrice}">
                    </div>

                    <div class="col-md-2 title">运输费用</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="运输费用" name="freightPrice" value="${invoice.freightPrice}">
                    </div>

                    <div class="col-md-2 title">贸易条款</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="贸易条款" name="tradeTerms" value="${invoice.tradeTerms}">
                    </div>

                    <div class="col-md-2 title">不含总金额</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="不含总金额" name="excludingTax" value="${invoice.excludingTax}">
                    </div>

                    <div class="col-md-2 title">含税总金额</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="含税总金额" name="taxIncluded" value="${invoice.taxIncluded}">
                    </div>

                    <div class="col-md-2 title">发票日期</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="发票日期" disabled="disabled" name="invoiceDate" value="${invoice.invoiceDate}">
                    </div>

                    <div class="col-md-2 title">开票人</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="开票人" name="drawer" value="${invoice.drawer}">
                    </div>

                    <div class="col-md-2 title">审核人</div>
                    <div class="col-md-4 data ">
                        <input type="text" class="form-control" placeholder="审核人" name="auditor" value="${invoice.auditor}">
                    </div>
                </div>

        </div>

        <!--工具栏-->
        <div class="box-tools text-center">
            <button type="submit" class="btn bg-maroon">保存</button>
            <button type="button" class="btn btn-default" title="刷新" onclick="window.location.reload();"><i class="fa fa-refresh"></i> 刷新</button>
            <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
        </div>
        </form>
        <!--工具栏/-->
        <%--'document.getElementById("editForm").submit()'--%>
    </section>
    <!-- 正文区域 /-->

</div>
<!-- 内容区域 /-->
</body>

</html>